package com.definity.toolkit.ui.animate;

public enum AnimateType {

	EXPAND_HORIZONTAL(false),
	EXPAND_VERTICAL(true),
	COLLAPSE_HORIZONTAL(false),
	COLLAPSE_VERTICAL(true),
	SHOW_HORIZONTAL(false),
	SHOW_VERTICAL(true),
	HIDE_HORIZONTAL(false),
	HIDE_VERTICAL(true);

	private final boolean vertical;

	private AnimateType(boolean vertical) {
		this.vertical = vertical;
	}

	public boolean isShow() {
		return this == SHOW_HORIZONTAL || this == SHOW_VERTICAL;
	}

	public boolean isHide() {
		return this == HIDE_HORIZONTAL || this == HIDE_VERTICAL;
	}

	public boolean isExpand() {
		return this == EXPAND_HORIZONTAL || this == EXPAND_VERTICAL;
	}

	public boolean isCollapse() {
		return this == COLLAPSE_HORIZONTAL || this == COLLAPSE_VERTICAL;
	}
	
	public boolean isVertical() {
		return vertical;
	}

	public boolean isHorizontal() {
		return !vertical;
	}
	
}
